home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / x11 / xutil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  19.9 KB  |  799 lines

  1. /* $XConsortium: Xutil.h,v 11.58 89/12/12 20:15:40 jim Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.                         All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. #ifndef _XUTIL_H_
  28. #define _XUTIL_H_
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {                    /* for C++ V2.0 */
  32. #endif
  33.  
  34. #ifndef NeedFunctionPrototypes
  35. #if defined(FUNCPROTO) || defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
  36. #define NeedFunctionPrototypes 1
  37. #else
  38. #define NeedFunctionPrototypes 0
  39. #endif /* __STDC__ */
  40. #endif /* NeedFunctionPrototypes */
  41.  
  42. /* 
  43.  * Bitmask returned by XParseGeometry().  Each bit tells if the corresponding
  44.  * value (x, y, width, height) was found in the parsed string.
  45.  */
  46. #define NoValue        0x0000
  47. #define XValue      0x0001
  48. #define YValue        0x0002
  49. #define WidthValue      0x0004
  50. #define HeightValue      0x0008
  51. #define AllValues     0x000F
  52. #define XNegative     0x0010
  53. #define YNegative     0x0020
  54.  
  55. /*
  56.  * new version containing base_width, base_height, and win_gravity fields;
  57.  * used with WM_NORMAL_HINTS.
  58.  */
  59. typedef struct _XSizeHints { /* Tagged. POHC 90/10/08 */
  60.         long flags;    /* marks which fields in this structure are defined */
  61.     int x, y;        /* obsolete for new window mgrs, but clients */
  62.     int width, height;    /* should set so old wm's don't mess up */
  63.     int min_width, min_height;
  64.     int max_width, max_height;
  65.         int width_inc, height_inc;
  66.     struct {
  67.         int x;    /* numerator */
  68.         int y;    /* denominator */
  69.     } min_aspect, max_aspect;
  70.     int base_width, base_height;        /* added by ICCCM version 1 */
  71.     int win_gravity;            /* added by ICCCM version 1 */
  72. } XSizeHints;
  73.  
  74. /*
  75.  * The next block of definitions are for window manager properties that
  76.  * clients and applications use for communication.
  77.  */
  78.  
  79. /* flags argument in size hints */
  80. #define USPosition    (1L << 0) /* user specified x, y */
  81. #define USSize        (1L << 1) /* user specified width, height */
  82.  
  83. #define PPosition    (1L << 2) /* program specified position */
  84. #define PSize        (1L << 3) /* program specified size */
  85. #define PMinSize    (1L << 4) /* program specified minimum size */
  86. #define PMaxSize    (1L << 5) /* program specified maximum size */
  87. #define PResizeInc    (1L << 6) /* program specified resize increments */
  88. #define PAspect        (1L << 7) /* program specified min and max aspect ratios */
  89. #define PBaseSize    (1L << 8) /* program specified base for incrementing */
  90. #define PWinGravity    (1L << 9) /* program specified window gravity */
  91.  
  92. /* obsolete */
  93. #define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect)
  94.  
  95.  
  96.  
  97. typedef struct _XWMHints { /* Tagged. POHC 90/10/08 */
  98.     long flags;    /* marks which fields in this structure are defined */
  99.     Bool input;    /* does this application rely on the window manager to
  100.             get keyboard input? */
  101.     int initial_state;    /* see below */
  102.     Pixmap icon_pixmap;    /* pixmap to be used as icon */
  103.     Window icon_window;     /* window to be used as icon */
  104.     int icon_x, icon_y;     /* initial position of icon */
  105.     Pixmap icon_mask;    /* icon mask bitmap */
  106.     XID window_group;    /* id of related window group */
  107.     /* this structure may be extended in the future */
  108. } XWMHints;
  109.  
  110. /* definition for flags of XWMHints */
  111.  
  112. #define InputHint         (1L << 0)
  113. #define StateHint         (1L << 1)
  114. #define IconPixmapHint        (1L << 2)
  115. #define IconWindowHint        (1L << 3)
  116. #define IconPositionHint     (1L << 4)
  117. #define IconMaskHint        (1L << 5)
  118. #define WindowGroupHint        (1L << 6)
  119. #define AllHints (InputHint|StateHint|IconPixmapHint|IconWindowHint| \
  120. IconPositionHint|IconMaskHint|WindowGroupHint)
  121.  
  122. /* definitions for initial window state */
  123. #define WithdrawnState 0    /* for windows that are not mapped */
  124. #define NormalState 1    /* most applications want to start this way */
  125. #define IconicState 3    /* application wants to start as an icon */
  126.  
  127. /*
  128.  * Obsolete states no longer defined by ICCCM
  129.  */
  130. #define DontCareState 0    /* don't know or care */
  131. #define ZoomState 2    /* application wants to start zoomed */
  132. #define InactiveState 4    /* application believes it is seldom used; */
  133.             /* some wm's may put it on inactive menu */
  134.  
  135.  
  136. /*
  137.  * new structure for manipulating TEXT properties; used with WM_NAME, 
  138.  * WM_ICON_NAME, WM_CLIENT_MACHINE, and WM_COMMAND.
  139.  */
  140. typedef struct _XTextProperty { /* Tagged. POHC 90/10/08 */
  141.     unsigned char *value;        /* same as Property routines */
  142.     Atom encoding;            /* prop type */
  143.     int format;                /* prop data format: 8, 16, or 32 */
  144.     unsigned long nitems;        /* number of data items in value */
  145. } XTextProperty;
  146.  
  147.  
  148. typedef struct _XIconSize { /* Tagged. POHC 90/10/08 */
  149.     int min_width, min_height;
  150.     int max_width, max_height;
  151.     int width_inc, height_inc;
  152. } XIconSize;
  153.  
  154. typedef struct _XClassHint { /* Tagged. POHC 90/10/08 */
  155.     char *res_name;
  156.     char *res_class;
  157. } XClassHint;
  158.  
  159. /*
  160.  * These macros are used to give some sugar to the image routines so that
  161.  * naive people are more comfortable with them.
  162.  */
  163. #define XDestroyImage(ximage) \
  164.     ((*((ximage)->f.destroy_image))((ximage)))
  165. #define XGetPixel(ximage, x, y) \
  166.     ((*((ximage)->f.get_pixel))((ximage), (x), (y)))
  167. #define XPutPixel(ximage, x, y, pixel) \
  168.     ((*((ximage)->f.put_pixel))((ximage), (x), (y), (pixel)))
  169. #define XSubImage(ximage, x, y, width, height)  \
  170.     ((*((ximage)->f.sub_image))((ximage), (x), (y), (width), (height)))
  171. #define XAddPixel(ximage, value) \
  172.     ((*((ximage)->f.add_pixel))((ximage), (value)))
  173.  
  174. /*
  175.  * Compose sequence status structure, used in calling XLookupString.
  176.  */
  177. typedef struct _XComposeStatus {
  178.     char *compose_ptr;        /* state table pointer */
  179.     int chars_matched;        /* match state */
  180. } XComposeStatus;
  181.  
  182. /*
  183.  * Keysym macros, used on Keysyms to test for classes of symbols
  184.  */
  185. #define IsKeypadKey(keysym) \
  186.   (((unsigned)(keysym) >= XK_KP_Space) && ((unsigned)(keysym) <= XK_KP_Equal))
  187.  
  188. #define IsCursorKey(keysym) \
  189.   (((unsigned)(keysym) >= XK_Home)     && ((unsigned)(keysym) <  XK_Select))
  190.  
  191. #define IsPFKey(keysym) \
  192.   (((unsigned)(keysym) >= XK_KP_F1)     && ((unsigned)(keysym) <= XK_KP_F4))
  193.  
  194. #define IsFunctionKey(keysym) \
  195.   (((unsigned)(keysym) >= XK_F1)       && ((unsigned)(keysym) <= XK_F35))
  196.  
  197. #define IsMiscFunctionKey(keysym) \
  198.   (((unsigned)(keysym) >= XK_Select)   && ((unsigned)(keysym) <  XK_KP_Space))
  199.  
  200. #define IsModifierKey(keysym) \
  201.   (((unsigned)(keysym) >= XK_Shift_L)  && ((unsigned)(keysym) <= XK_Hyper_R))
  202.  
  203. /*
  204.  * opaque reference to Region data type 
  205.  */
  206. typedef struct _XRegion *Region; 
  207.  
  208. /* Return values from XRectInRegion() */
  209.  
  210. #define RectangleOut 0
  211. #define RectangleIn  1
  212. #define RectanglePart 2
  213.  
  214.  
  215. /*
  216.  * Information used by the visual utility routines to find desired visual
  217.  * type from the many visuals a display may support.
  218.  */
  219.  
  220. typedef struct _XVisualInfo { /* Tagged. POHC 90/10/08 */
  221.   Visual *visual;
  222.   VisualID visualid;
  223.   int screen;
  224.   int depth;
  225. #if defined(__cplusplus) || defined(c_plusplus)
  226.   int c_class;                    /* C++ */
  227. #else
  228.   int class;
  229. #endif
  230.   unsigned long red_mask;
  231.   unsigned long green_mask;
  232.   unsigned long blue_mask;
  233.   int colormap_size;
  234.   int bits_per_rgb;
  235. } XVisualInfo;
  236.  
  237. #define VisualNoMask        0x0
  238. #define VisualIDMask         0x1
  239. #define VisualScreenMask    0x2
  240. #define VisualDepthMask        0x4
  241. #define VisualClassMask        0x8
  242. #define VisualRedMaskMask    0x10
  243. #define VisualGreenMaskMask    0x20
  244. #define VisualBlueMaskMask    0x40
  245. #define VisualColormapSizeMask    0x80
  246. #define VisualBitsPerRGBMask    0x100
  247. #define VisualAllMask        0x1FF
  248.  
  249. /*
  250.  * This defines a window manager property that clients may use to
  251.  * share standard color maps of type RGB_COLOR_MAP:
  252.  */
  253. typedef struct _XStandardColormap { /* Tagged. POHC 90/10/08 */
  254.     Colormap colormap;
  255.     unsigned long red_max;
  256.     unsigned long red_mult;
  257.     unsigned long green_max;
  258.     unsigned long green_mult;
  259.     unsigned long blue_max;
  260.     unsigned long blue_mult;
  261.     unsigned long base_pixel;
  262.     VisualID visualid;        /* added by ICCCM version 1 */
  263.     XID killid;            /* added by ICCCM version 1 */
  264. } XStandardColormap;
  265.  
  266. #define ReleaseByFreeingColormap ((XID) 1L)  /* for killid field above */
  267.  
  268.  
  269. /*
  270.  * return codes for XReadBitmapFile and XWriteBitmapFile
  271.  */
  272. #define BitmapSuccess        0
  273. #define BitmapOpenFailed     1
  274. #define BitmapFileInvalid     2
  275. #define BitmapNoMemory        3
  276. /*
  277.  * Declare the routines that don't return int.
  278.  */
  279.  
  280. /****************************************************************
  281.  *
  282.  * Context Management
  283.  *
  284.  ****************************************************************/
  285.  
  286.  
  287. /* Associative lookup table return codes */
  288.  
  289. #define XCSUCCESS 0    /* No error. */
  290. #define XCNOMEM   1    /* Out of memory */
  291. #define XCNOENT   2    /* No entry in table */
  292.  
  293. typedef int XContext;
  294.  
  295. #define XUniqueContext()       ((XContext) XrmUniqueQuark())
  296. #define XStringToContext(string)   ((XContext) XrmStringToQuark(string))
  297.  
  298. extern int XSaveContext(
  299. #if NeedFunctionPrototypes
  300.     Display*        /* display */,
  301.     Window        /* w */,
  302.     XContext        /* context */,
  303.     const void*        /* data */
  304. #endif
  305. );
  306.  
  307. extern int XFindContext(
  308. #if NeedFunctionPrototypes
  309.     Display*        /* display */,
  310.     Window        /* w */,
  311.     XContext        /* context */,
  312.     caddr_t*        /* data_return */
  313. #endif
  314. );
  315.  
  316. extern int XDeleteContext(
  317. #if NeedFunctionPrototypes
  318.     Display*        /* display */,
  319.     Window        /* w */,
  320.     XContext        /* context */
  321. #endif
  322. );
  323.  
  324.  
  325. extern XWMHints *XGetWMHints(
  326. #if NeedFunctionPrototypes
  327.     Display*        /* display */,
  328.     Window        /* w */              
  329. #endif
  330. );
  331. extern Region XCreateRegion(
  332. #if NeedFunctionPrototypes
  333.     void
  334. #endif
  335. );
  336. extern Region XPolygonRegion(
  337. #if NeedFunctionPrototypes
  338.     XPoint*        /* points */,
  339.     int            /* n */,
  340.     int            /* fill_rule */
  341. #endif
  342. );
  343.  
  344. extern XVisualInfo *XGetVisualInfo(
  345. #if NeedFunctionPrototypes
  346.     Display*        /* display */,
  347.     long        /* vinfo_mask */,
  348.     XVisualInfo*    /* vinfo_template */,
  349.     int*        /* nitems_return */
  350. #endif
  351. );
  352.  
  353. /* Allocation routines for properties that may get longer */
  354. extern XSizeHints *XAllocSizeHints (
  355. #if NeedFunctionPrototypes
  356.     void
  357. #endif
  358. );
  359. extern XStandardColormap *XAllocStandardColormap (
  360. #if NeedFunctionPrototypes
  361.     void
  362. #endif
  363. );
  364. extern XWMHints *XAllocWMHints (
  365. #if NeedFunctionPrototypes
  366.     void
  367. #endif
  368. );
  369. extern XClassHint *XAllocClassHint (
  370. #if NeedFunctionPrototypes
  371.     void
  372. #endif
  373. );
  374. extern XIconSize *XAllocIconSize (
  375. #if NeedFunctionPrototypes
  376.     void
  377. #endif
  378. );
  379.  
  380. /* ICCCM routines for data structures defined in this file */
  381. extern Status XGetWMSizeHints(
  382. #if NeedFunctionPrototypes
  383.     Display*        /* display */,
  384.     Window        /* w */,
  385.     XSizeHints*        /* hints_return */,
  386.     long*        /* supplied_return */,
  387.     Atom        /* property */
  388. #endif
  389. );
  390. extern Status XGetWMNormalHints(
  391. #if NeedFunctionPrototypes
  392.     Display*        /* display */,
  393.     Window        /* w */,
  394.     XSizeHints*        /* hints_return */,
  395.     long*        /* supplied_return */ 
  396. #endif
  397. );
  398. extern Status XGetRGBColormaps(
  399. #if NeedFunctionPrototypes
  400.     Display*        /* display */,
  401.     Window        /* w */,
  402.     XStandardColormap** /* stdcmap_return */,
  403.     int*        /* count_return */,
  404.     Atom        /* property */
  405. #endif
  406. );
  407. extern Status XGetTextProperty(
  408. #if NeedFunctionPrototypes
  409.     Display*        /* display */,
  410.     Window        /* window */,
  411.     XTextProperty*    /* text_prop_return */,
  412.     Atom        /* property */
  413. #endif
  414. );
  415. extern Status XGetWMName(
  416. #if NeedFunctionPrototypes
  417.     Display*        /* display */,
  418.     Window        /* w */,
  419.     XTextProperty*    /* text_prop_return */
  420. #endif
  421. );
  422. extern Status XGetWMIconName(
  423. #if NeedFunctionPrototypes
  424.     Display*        /* display */,
  425.     Window        /* w */,
  426.     XTextProperty*    /* text_prop_return */
  427. #endif
  428. );
  429. extern Status XGetWMClientMachine(
  430. #if NeedFunctionPrototypes
  431.     Display*        /* display */,
  432.     Window        /* w */,
  433.     XTextProperty*    /* text_prop_return */
  434. #endif
  435. );
  436. extern void XSetWMProperties(
  437. #if NeedFunctionPrototypes
  438.     Display*        /* display */,
  439.     Window        /* w */,
  440.     XTextProperty*    /* window_name */,
  441.     XTextProperty*    /* icon_name */,
  442.     char**        /* argv */,
  443.     int            /* argc */,
  444.     XSizeHints*        /* normal_hints */,
  445.     XWMHints*        /* wm_hints */,
  446.     XClassHint*        /* class_hints */
  447. #endif
  448. );
  449. extern void XSetWMSizeHints(
  450. #if NeedFunctionPrototypes
  451.     Display*        /* display */,
  452.     Window        /* w */,
  453.     XSizeHints*        /* hints */,
  454.     Atom        /* property */
  455. #endif
  456. );
  457. extern void XSetWMNormalHints(
  458. #if NeedFunctionPrototypes
  459.     Display*        /* display */,
  460.     Window        /* w */,
  461.     XSizeHints*        /* hints */
  462. #endif
  463. );
  464. extern void XSetRGBColormaps(
  465. #if NeedFunctionPrototypes
  466.     Display*        /* display */,
  467.     Window        /* w */,
  468.     XStandardColormap*    /* stdcmaps */,
  469.     int            /* count */,
  470.     Atom        /* property */
  471. #endif
  472. );
  473. extern void XSetTextProperty(
  474. #if NeedFunctionPrototypes
  475.     Display*        /* display */,
  476.     Window        /* w */,
  477.     XTextProperty*    /* text_prop */,
  478.     Atom        /* property */
  479. #endif
  480. );
  481. extern void XSetWMName(
  482. #if NeedFunctionPrototypes
  483.     Display*        /* display */,
  484.     Window        /* w */,
  485.     XTextProperty*    /* text_prop */
  486. #endif
  487. );
  488. extern void XSetWMIconName(
  489. #if NeedFunctionPrototypes
  490.     Display*        /* display */,
  491.     Window        /* w */,
  492.     XTextProperty*    /* text_prop */
  493. #endif
  494. );
  495. extern void XSetWMClientMachine(
  496. #if NeedFunctionPrototypes
  497.     Display*        /* display */,
  498.     Window        /* w */,
  499.     XTextProperty*    /* text_prop */
  500. #endif
  501. );
  502. extern Status XStringListToTextProperty(
  503. #if NeedFunctionPrototypes
  504.     char**        /* list */,
  505.     int            /* count */,
  506.     XTextProperty*    /* text_prop_return */
  507. #endif
  508. );
  509. extern Status XTextPropertyToStringList(
  510. #if NeedFunctionPrototypes
  511.     XTextProperty*    /* text_prop */,
  512.     char***        /* list_return */,
  513.     int*        /* count_return */
  514. #endif
  515. );
  516.  
  517. /* The following declarations are alphabetized. */
  518.  
  519. extern XClipBox(
  520. #if NeedFunctionPrototypes
  521.     Region        /* r */,
  522.     XRectangle*        /* rect_return */
  523. #endif
  524. );
  525.  
  526. extern XDestroyRegion(
  527. #if NeedFunctionPrototypes
  528.     Region        /* r */
  529. #endif
  530. );
  531.  
  532. extern XEmptyRegion(
  533. #if NeedFunctionPrototypes
  534.     Region        /* r */
  535. #endif
  536. );
  537.  
  538. extern XEqualRegion(
  539. #if NeedFunctionPrototypes
  540.     Region        /* r1 */,
  541.     Region        /* r2 */
  542. #endif
  543. );
  544.  
  545. extern Status XGetClassHint(
  546. #if NeedFunctionPrototypes
  547.     Display*        /* display */,
  548.     Window        /* w */,
  549.     XClassHint*        /* class_hints_return */
  550. #endif
  551. );
  552.  
  553. extern Status XGetIconSizes(
  554. #if NeedFunctionPrototypes
  555.     Display*        /* display */,
  556.     Window        /* w */,
  557.     XIconSize**        /* size_list_return */,
  558.     int*        /* count_return */
  559. #endif
  560. );
  561.  
  562. extern Status XGetNormalHints(
  563. #if NeedFunctionPrototypes
  564.     Display*        /* display */,
  565.     Window        /* w */,
  566.     XSizeHints*        /* hints_return */
  567. #endif
  568. );
  569.  
  570. extern Status XGetSizeHints(
  571. #if NeedFunctionPrototypes
  572.     Display*        /* display */,
  573.     Window        /* w */,
  574.     XSizeHints*        /* hints_return */,
  575.     Atom        /* property */
  576. #endif
  577. );
  578.  
  579. extern Status XGetStandardColormap(
  580. #if NeedFunctionPrototypes
  581.     Display*        /* display */,
  582.     Window        /* w */,
  583.     XStandardColormap*    /* colormap_return */,
  584.     Atom        /* property */                
  585. #endif
  586. );
  587.  
  588. extern Status XGetZoomHints(
  589. #if NeedFunctionPrototypes
  590.     Display*        /* display */,
  591.     Window        /* w */,
  592.     XSizeHints*        /* zhints_return */
  593. #endif
  594. );
  595.  
  596. extern XIntersectRegion(
  597. #if NeedFunctionPrototypes
  598.     Region        /* sra */,
  599.     Region        /* srb */,
  600.     Region        /* dr_return */
  601. #endif
  602. );
  603.  
  604. extern int XLookupString(
  605. #if NeedFunctionPrototypes
  606.     XKeyEvent*        /* event_struct */,
  607.     char*        /* buffer_return */,
  608.     int            /* bytes_buffer */,
  609.     KeySym*        /* keysym_return */,
  610.     XComposeStatus*    /* status_in_out */
  611. #endif
  612. );
  613.  
  614. extern Status XMatchVisualInfo(
  615. #if NeedFunctionPrototypes
  616.     Display*        /* display */,
  617.     int            /* screen */,
  618.     int            /* depth */,
  619.     int            /* class */,
  620.     XVisualInfo*    /* vinfo_return */
  621. #endif
  622. );
  623.  
  624. extern XOffsetRegion(
  625. #if NeedFunctionPrototypes
  626.     Region        /* r */,
  627.     int            /* dx */,
  628.     int            /* dy */
  629. #endif
  630. );
  631.  
  632. extern Bool XPointInRegion(
  633. #if NeedFunctionPrototypes
  634.     Region        /* r */,
  635.     int            /* x */,
  636.     int            /* y */
  637. #endif
  638. );
  639.  
  640. extern Region XPolygonRegion(
  641. #if NeedFunctionPrototypes
  642.     XPoint*        /* points */,
  643.     int            /* n */,
  644.     int            /* fill_rule */
  645. #endif
  646. );
  647.  
  648. extern int XRectInRegion(
  649. #if NeedFunctionPrototypes
  650.     Region        /* r */,
  651.     int            /* x */,
  652.     int            /* y */,
  653.     unsigned int    /* width */,
  654.     unsigned int    /* height */
  655. #endif
  656. );
  657.  
  658. extern XSetClassHint(
  659. #if NeedFunctionPrototypes
  660.     Display*        /* display */,
  661.     Window        /* w */,
  662.     XClassHint*        /* class_hints */
  663. #endif
  664. );
  665.  
  666. extern XSetIconSizes(
  667. #if NeedFunctionPrototypes
  668.     Display*        /* display */,
  669.     Window        /* w */,
  670.     XIconSize*        /* size_list */,
  671.     int            /* count */    
  672. #endif
  673. );
  674.  
  675. extern XSetNormalHints(
  676. #if NeedFunctionPrototypes
  677.     Display*        /* display */,
  678.     Window        /* w */,
  679.     XSizeHints*        /* hints */
  680. #endif
  681. );
  682.  
  683. extern XSetSizeHints(
  684. #if NeedFunctionPrototypes
  685.     Display*        /* display */,
  686.     Window        /* w */,
  687.     XSizeHints*        /* hints */,
  688.     Atom        /* property */
  689. #endif
  690. );
  691.  
  692. extern XSetStandardProperties(
  693. #if NeedFunctionPrototypes
  694.     Display*        /* display */,
  695.     Window        /* w */,
  696.     const char*        /* window_name */,
  697.     const char*        /* icon_name */,
  698.     Pixmap        /* icon_pixmap */,
  699.     char**        /* argv */,
  700.     int            /* argc */,
  701.     XSizeHints*        /* hints */
  702. #endif
  703. );
  704.  
  705. extern XSetWMHints(
  706. #if NeedFunctionPrototypes
  707.     Display*        /* display */,
  708.     Window        /* w */,
  709.     XWMHints*        /* wm_hints */
  710. #endif
  711. );
  712.  
  713. extern XSetRegion(
  714. #if NeedFunctionPrototypes
  715.     Display*        /* display */,
  716.     GC            /* gc */,
  717.     Region        /* r */
  718. #endif
  719. );
  720.  
  721. extern void XSetStandardColormap(
  722. #if NeedFunctionPrototypes
  723.     Display*        /* display */,
  724.     Window        /* w */,
  725.     XStandardColormap*    /* colormap */,
  726.     Atom        /* property */
  727. #endif
  728. );
  729.  
  730. extern XSetZoomHints(
  731. #if NeedFunctionPrototypes
  732.     Display*        /* display */,
  733.     Window        /* w */,
  734.     XSizeHints*        /* zhints */
  735. #endif
  736. );
  737.  
  738. extern void XShrinkRegion(
  739. #if NeedFunctionPrototypes
  740.     Region        /* r */,
  741.     int            /* dx */,
  742.     int            /* dy */
  743. #endif
  744. );
  745.  
  746. extern XSubtractRegion(
  747. #if NeedFunctionPrototypes
  748.     Region        /* sra */,
  749.     Region        /* srb */,
  750.     Region        /* dr_return */
  751. #endif
  752. );
  753.  
  754. extern XUnionRectWithRegion(
  755. #if NeedFunctionPrototypes
  756.     XRectangle*        /* rectangle */,
  757.     Region        /* src_region */,
  758.     Region        /* dest_region_return */
  759. #endif
  760. );
  761.  
  762. extern XUnionRegion(
  763. #if NeedFunctionPrototypes
  764.     Region        /* sra */,
  765.     Region        /* srb */,
  766.     Region        /* dr_return */
  767. #endif
  768. );
  769.  
  770. extern int XWMGeometry(
  771. #if NeedFunctionPrototypes
  772.     Display*        /* display */,
  773.     int            /* screen_number */,
  774.     const char*        /* user_geometry */,
  775.     const char*        /* default_geometry */,
  776.     unsigned int    /* border_width */,
  777.     XSizeHints*        /* hints */,
  778.     int*        /* x_return */,
  779.     int*        /* y_return */,
  780.     int*        /* width_return */,
  781.     int*        /* height_return */,
  782.     int*        /* gravity_return */
  783. #endif
  784. );
  785.  
  786. extern void XXorRegion(
  787. #if NeedFunctionPrototypes
  788.     Region        /* sra */,
  789.     Region        /* srb */,
  790.     Region        /* dr_return */
  791. #endif
  792. );
  793.  
  794. #ifdef __cplusplus
  795. }                        /* for C++ V2.0 */
  796. #endif
  797.  
  798. #endif /* _XUTIL_H_ */
  799.